<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.0/build/reset-fonts-grids/reset-fonts-grids.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.0/build/base/base-min.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>訂閱電子報</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
</style>
<SCRIPT language="JavaScript" type="text/JavaScript">
function chk_data(){	
	document.man.add_form.submit.disabled = true;   //防止重複送出資料。	
    if ( document.man.add_form.u_name.value == "" ) {
		alert("「姓名」欄中不可為空白！");
		document.man.add_form.u_name.focus();			
	} else if ( document.man.add_form.u_mail.value == "" ) {
		alert("電子郵件不可為空白！，謝謝！");
		document.man.add_form.email.focus();
	}  else  if (document.man.add_form.u_mail.value.indexOf('@',0) == -1 ||	document.man.add_form.u_mail.value.indexOf('.',0) == -1 ) 	{
		alert("你所輸入的電子郵件不合法！");
	} else {
	                 return true;
	}
	document.man.add_form.submit.disabled = false;  
	return false;
}       
</SCRIPT>
</head>

<body><div id="man">
<form id="add_form" name="add_form" method="post" action="register2.php" onSubmit="return chk_data();">
<div class="h_line">  訂閱彰化縣教師會電子報</div>
<ul>
  <li>您的姓名  
    <input name="u_name" type="text" id="u_name" maxlength="30" />
  </li>
  <li>學校單位
    <input name="u_dep" type="text" id="u_dep" maxlength="255" />
  </li>
  <li>電子郵件
    <input name="u_mail" type="text" id="u_mail" size="50" maxlength="255" />
  </li>
  <li>您是否為教師
    <input name="ist" type="radio" value="1" checked="checked" />
    是
    <input name="ist" type="radio" value="0" />
    否 </li>
  <li>學校是否有教師會
    <input name="isg" type="radio" value="1" checked="checked" />
    是
    <input name="isg" type="radio" value="0" />
    否</li>
</ul>
<blockquote>
  <p>
    <span class="style1">
      <input type="submit" name="submit" value="確定訂閱" />
    </span> </p>
</blockquote>
</form>
</div>
</body>
</html>
